<?php

namespace App\Params\Backend;

use App\Params\Param;
/**
 * 用户登录参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class UserLoginParam extends Param
{
    public $login_type;
    public $username;
    public $password;

    public function rules()
    {
        return [
            'login_type' => 'required|string',
            'username' => 'required|string',
            'password' => 'required|string',
        ];
    }

    /**
     * @return mixed
     */
    public function getLoginType()
    {
        return $this->login_type;
    }

    /**
     * @param mixed $login_type
     */
    public function setLoginType($login_type): void
    {
        $this->login_type = $login_type;
    }

    /**
     * @return mixed
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * @param mixed $username
     */
    public function setUsername($username): void
    {
        $this->username = $username;
    }

    /**
     * @return mixed
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param mixed $password
     */
    public function setPassword($password): void
    {
        $this->password = $password;
    }
}
